package com.eastedu.report.common.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.eastedu.common.domain.BaseAutoIdEntity;
import com.eastedu.common.enums.DateCodeType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yemao
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "t_history_report_from_upgrade")
@TableName("t_history_report_from_upgrade")
public class HistoryReportFromUpgradePO extends BaseAutoIdEntity {

    @Column(name = "`school_group_id`", columnDefinition = "bigint comment '校级ID'")
    private String schoolGroupId;

    @Column(name = "`school_guid`", columnDefinition = "varchar(68) comment '学校GUID'")
    private String schoolGuid;

    @Column(name = "`school_name`", columnDefinition = "varchar(50) comment '学校名称'")
    private String schoolName;

    @Column(name = "`code_type`", columnDefinition = "varchar(10) comment '时间类型'")
    private DateCodeType codeType;

    @Column(name = "`date_code`", columnDefinition = "int  comment '时间值'")
    private Integer dateCode;

    @Column(name = "`url`", columnDefinition = "varchar(500) comment '报告地址'")
    private String url;
}
